#include "gullApplication.h"
#include "GullEngine.h"

#include <iostream>

using namespace gull::core;

GullApplication::GullApplication()
{
	GullEngine::getInstance();
	if(theGullGraphicsManager->initGraphicsContext() == GULL_OK)
	{
		theGullApplicationManager->registerApplication(this);
		initApplication();
	}
	
}



GullApplication::~GullApplication()
{
	GullEngine::releaseInstance();
}



unsigned int
GullApplication::initApplication()
{
	ApplicationManager::setActiveApplication(this);
	return 0;
}



void
GullApplication::show()
{
	ApplicationManager::setActiveApplication(this);
	theGullEngine->start();
}


void 
GullApplication::reshape(int w, int h) const
{	
}

void 
GullApplication::applicationOnLoad() const
{
}	